const modulesFiles = require.context('../bg', true, /\.jpg$/)
var i = 1

const modules = modulesFiles.keys().reduce((modules, modulePath) => {
  const moduleName = `img${i++}`
  const value = modulesFiles(modulePath)
  modules[moduleName] = value
  return modules
}, {})

export default {
  ...modules
}